$(function() {
    
});
function updateVerify(obj) {
    obj.src = baseUrl + "getVerify?_d="+Math.random();
}
//登录前验证信息
function checkBeforeSubmit() {
    var username = $("#username").val();
    var password = $("#password").val();
    var verify = $("#verify").val();
    if(username==undefined ||username == null || username==""){
      alert("请输入用户名！");
      return false;
    }

    if(password==undefined ||password == null || password==""){
        alert("请输入密码！");
        return false;
    }

    if(verify==undefined || verify == null || verify==""){
        alert("请输入验证码！");
        return false;
    }
}